import java.io.Serializable;
//currency converter
class Forex
    implements Serializable
{

    public Forex(String country, String monetaryUnit, String symbol, double forexEUR, double forexUSD, 
            double forexPHP)
    {
        this.country = country;
        this.monetaryUnit = monetaryUnit;
        this.symbol = symbol;
        this.forexEUR = forexEUR;
        this.forexUSD = forexUSD;
        this.forexPHP = forexPHP;
    }

    public double convertLocalToEUR(double amount)
    {
        return amount * forexEUR;
    }

    public double convertLocalToUSD(double amount)
    {
        return amount * forexUSD;
    }

    public double convertLocaltToPHP(double amount)
    {
        return amount * forexPHP;
    }

    public double convertEURToLocal(double amount)
    {
        return amount / forexEUR;
    }

    public double convertUSDToLocal(double amount)
    {
        return amount / forexUSD;
    }

    public double convertPHPToLocal(double amount)
    {
        return amount / forexPHP;
    }

    final long serialVersionUID = 1L;
    String country;
    String monetaryUnit;
    String symbol;
    double forexEUR;
    double forexUSD;
    double forexPHP;
}
